package com.yuntai.pms.model.api.access;

import com.github.pagehelper.PageInfo;
import com.yuntai.pms.model.dto.access.HfpAccessBizRuleDto;

/**
 * Created with IntelliJ IDEA.
 * Description: 医院对接
 * User: maoze@hsyuntai.com
 * Date: 2019-01-15
 * Time: 10:02
 */
public interface HfpAccessBizRuleService  {

    /**
     * @Author maoze@hsyutai.com
     * @Description  分页查询
     * @Date 13:52 2019/1/15
     * @Param [dto]
     * @return com.github.pagehelper.PageInfo
     **/
    PageInfo pageFindaccessData(HfpAccessBizRuleDto dto);


    /**
     * @Author maoze@hsyutai.com
     * @Description 查询单个对象
     * @Date 13:53 2019/1/15
     * @Param [dto]
     * @return com.hiap.amp.platform.model.dto.access.HfpAccessBizRuleDto
     **/
    HfpAccessBizRuleDto getAccessRuleById(HfpAccessBizRuleDto dto);

    /**
     * @Author maoze@hsyutai.com
     * @Description  新增
     * @Date 13:54 2019/1/15
     * @Param [dto]
     * @return void
     **/
    void addAccess(HfpAccessBizRuleDto dto);

    /**
     * @Author maoze@hsyutai.com
     * @Description  编辑
     * @Date 13:54 2019/1/15
     * @Param [dto]
     * @return void
     **/
    void updateAccess(HfpAccessBizRuleDto dto);

    /**
     * @Author maoze@hsyutai.com
     * @Description  删除逻辑
     * @Date 13:54 2019/1/15
     * @Param [dto]
     * @return void
     **/
    void delAccess(HfpAccessBizRuleDto dto);

    /**
     * @Author maoze@hsyutai.com
     * @Description  判断唯一
     * @Date 13:55 2019/1/15
     * @Param [dto]
     * @return java.lang.Integer
     **/
    Integer getCountsAccessWtihName(HfpAccessBizRuleDto dto);
}
